package com.example.onlinetaxi.ui.activity.CommentPage;

import android.os.Bundle;

import androidx.fragment.app.Fragment;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.example.onlinetaxi.R;

public class CannotCommentFragment extends Fragment {

    private View rootView;

    private String content;

    private TextView cannotReason;

    public CannotCommentFragment(String content) {
        this.content = content;
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        rootView = inflater.inflate(R.layout.fragment_cannot_comment, container, false);

        initView();

        return rootView;
    }

    private void initView() {
        cannotReason = rootView.findViewById(R.id.cannot_see_comment);

        cannotReason.setText(content);
    }
}